package cn.yunhe.dao;

import cn.yunhe.pojo.House;

import java.util.List;
import java.util.Map;

public interface HouseDao {
    /**
     * 新增
     * @param house
     * @return
     */
    boolean insertHouse(House house);

    /**
     * 更新
     * @param house
     * @return
     */
    boolean updateHouse(House house);

    /**
     * 删除
     * @param hid
     * @return
     */
    boolean deleteHouse(int hid);

    /**
     * 查询
     * @param house
     * @return
     */
    List<House>houseList(House house);
    List<House>houseListByMap(Map<String,Object> map);
    int houseListByMap2TotalRecords(Map<String,Object> map);

}
